package com.ruoyi.dangerControl.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 隐患-处罚对象 hd_punish
 *
 * @author lth
 * @date 2023-12-13
 */
public class HdPunish extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 隐患编码 */
    @Excel(name = "隐患编码")
    private String hdCode;

    /** 处罚内容 */
    @Excel(name = "处罚内容")
    private String content;

    /** 被处罚人id */
    @Excel(name = "被处罚人id")
    private String penalizedBy;

    /** 被处罚人 */
    @Excel(name = "被处罚人")
    private String penalizedByName;

    /** 处罚金额 */
    @Excel(name = "处罚金额")
    private String amount;

    /** 处罚单位id */
    @Excel(name = "处罚单位id")
    private String punishDeptId;

    /** 处罚单位 */
    @Excel(name = "处罚单位")
    private String punishDept;

    /** 处罚人id */
    @Excel(name = "处罚人id")
    private String punishBy;

    /** 处罚人 */
    @Excel(name = "处罚人")
    private String punishByName;

    /** 处罚时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处罚时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date punishAt;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createByName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updateByName;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateAt;

    /** 排序 */
    @Excel(name = "排序")
    private Long sorting;

    /** 状态, 默认1(1:正常；2:冻结；98:关闭；99:删除)； */
    @Excel(name = "状态, 默认1(1:正常；2:冻结；98:关闭；99:删除)；")
    private Long status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setHdCode(String hdCode)
    {
        this.hdCode = hdCode;
    }

    public String getHdCode()
    {
        return hdCode;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setPenalizedBy(String penalizedBy)
    {
        this.penalizedBy = penalizedBy;
    }

    public String getPenalizedBy()
    {
        return penalizedBy;
    }
    public void setPenalizedByName(String penalizedByName)
    {
        this.penalizedByName = penalizedByName;
    }

    public String getPenalizedByName()
    {
        return penalizedByName;
    }
    public void setAmount(String amount)
    {
        this.amount = amount;
    }

    public String getAmount()
    {
        return amount;
    }
    public void setPunishDeptId(String punishDeptId)
    {
        this.punishDeptId = punishDeptId;
    }

    public String getPunishDeptId()
    {
        return punishDeptId;
    }
    public void setPunishDept(String punishDept)
    {
        this.punishDept = punishDept;
    }

    public String getPunishDept()
    {
        return punishDept;
    }
    public void setPunishBy(String punishBy)
    {
        this.punishBy = punishBy;
    }

    public String getPunishBy()
    {
        return punishBy;
    }
    public void setPunishByName(String punishByName)
    {
        this.punishByName = punishByName;
    }

    public String getPunishByName()
    {
        return punishByName;
    }
    public void setPunishAt(Date punishAt)
    {
        this.punishAt = punishAt;
    }

    public Date getPunishAt()
    {
        return punishAt;
    }
    public void setCreateByName(String createByName)
    {
        this.createByName = createByName;
    }

    public String getCreateByName()
    {
        return createByName;
    }
    public void setCreateAt(Date createAt)
    {
        this.createAt = createAt;
    }

    public Date getCreateAt()
    {
        return createAt;
    }
    public void setUpdateByName(String updateByName)
    {
        this.updateByName = updateByName;
    }

    public String getUpdateByName()
    {
        return updateByName;
    }
    public void setUpdateAt(Date updateAt)
    {
        this.updateAt = updateAt;
    }

    public Date getUpdateAt()
    {
        return updateAt;
    }
    public void setSorting(Long sorting)
    {
        this.sorting = sorting;
    }

    public Long getSorting()
    {
        return sorting;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("hdCode", getHdCode())
            .append("content", getContent())
            .append("penalizedBy", getPenalizedBy())
            .append("penalizedByName", getPenalizedByName())
            .append("amount", getAmount())
            .append("punishDeptId", getPunishDeptId())
            .append("punishDept", getPunishDept())
            .append("punishBy", getPunishBy())
            .append("punishByName", getPunishByName())
            .append("punishAt", getPunishAt())
            .append("createBy", getCreateBy())
            .append("createByName", getCreateByName())
            .append("createAt", getCreateAt())
            .append("updateBy", getUpdateBy())
            .append("updateByName", getUpdateByName())
            .append("updateAt", getUpdateAt())
            .append("sorting", getSorting())
            .append("remark", getRemark())
            .append("status", getStatus())
            .toString();
    }
}
